package edu.ccut.saturn.basecomponent.database.facade.factory;

import edu.ccut.saturn.basecomponent.database.facade.DeleteByCondition;
import edu.ccut.saturn.basecomponent.database.facade.DeleteByPrimaryKey;
import edu.ccut.saturn.basecomponent.database.facade.Insert;
import edu.ccut.saturn.basecomponent.database.facade.QueryByCondition;
import edu.ccut.saturn.basecomponent.database.facade.QueryByConditionWithPage;
import edu.ccut.saturn.basecomponent.database.facade.QueryByPrimaryKey;
import edu.ccut.saturn.basecomponent.database.facade.QueryBySaturnSQL;
import edu.ccut.saturn.basecomponent.database.facade.QueryCountByCondition;
import edu.ccut.saturn.basecomponent.database.facade.UpdateByCondition;
import edu.ccut.saturn.basecomponent.database.facade.UpdateByPrimaryKey;

public class DBOperationFactory {
	private static DeleteByCondition deleteByCondition= new DeleteByCondition();
	private static DeleteByPrimaryKey deleteByPrimaryKey = new DeleteByPrimaryKey();
	private static Insert insert = new Insert();
	private static QueryByConditionWithPage queryByConditionWithPage = new QueryByConditionWithPage();
	private static QueryByCondition queryByCondition = new QueryByCondition();
	private static QueryByPrimaryKey queryByPrimaryKey = new QueryByPrimaryKey();
	private static QueryCountByCondition queryCountByCondition = new QueryCountByCondition();
	private static UpdateByPrimaryKey updateByPrimaryKey = new UpdateByPrimaryKey();
	private static UpdateByCondition updateByCondition = new UpdateByCondition();
	private static QueryBySaturnSQL queryBySaturnSQL = new QueryBySaturnSQL();
	public static QueryBySaturnSQL getQueryBySaturnSQL(){
		return queryBySaturnSQL;
	}
	public static DeleteByCondition getDeleteByCondition(){
		return deleteByCondition;
	}
	public static DeleteByPrimaryKey getDeleteByPrimaryKey(){
		return deleteByPrimaryKey;
	}
	public static Insert Insert(){
		return insert;
	}
	public static QueryByConditionWithPage QueryByConditionWithPage(){
		return queryByConditionWithPage;
	}
	public static QueryByCondition QueryByCondition(){
		return queryByCondition;
	}
	public static QueryByPrimaryKey QueryByPrimaryKey(){
		return queryByPrimaryKey;
	}
	public static QueryCountByCondition QueryCountByCondition(){
		return queryCountByCondition;
	}
	public static UpdateByPrimaryKey UpdateByPrimaryKey(){
		return updateByPrimaryKey;
	}
	public static UpdateByCondition UpdateByCondition(){
		return updateByCondition;
	}
}
